package com.tedu.weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class CommentVO {
    @ApiModelProperty(value = "评论内容",required = true,example = "今天天气不错")
    private String content;
    @ApiModelProperty(value = "评论人昵称",required = true,example = "嘦姕")
    private String nickname;
    @JsonFormat(pattern="yyyy/MM/dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "评论时间",required = true,example = "2020/04/01 12:00:00")
    private Date created;
    @ApiModelProperty(value = "评论人id",required = true,example = "123")
    private Integer id;

}
